Conversation
Codecov ReportBase: 85.49% // Head: 84.50% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## development #485 +/- ##
===============================================
- Coverage 85.49% 84.50% -0.99%
===============================================
Files 231 232 +1
Lines 16351 16475 +124
Branches 3028 2734 -294
===============================================
- Hits 13979 13923 -56
- Misses 1533 1675 +142
- Partials 839 877 +38
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
autoPyTorch/api/base_task.py
Outdated
| y_test (np.ndarray): | ||
| The test ground truth labels. | ||
| score_kwargs: Any | ||
| additional arguments for computing the scores. Some metrics might require special arguments |
There was a problem hiding this comment.
could you add a note saying something like: Currently, needed for time series forecasting tasks. See autoPyTorch/api/time_series_forecasting.py
| if isinstance(seasonality, list): | ||
| seasonality = min(seasonality) # Use to calculate MASE | ||
| self.seasonality = int(seasonality) # type: ignore[call-overload] | ||
| self.seasonality = self.datamanager.seasonality |
There was a problem hiding this comment.
In the AbstractEvaluator class, we use a _init_datamanager_info (see here). At the end of this method we delete the datamaneger object to reduce the memory usage. Could you also update the time series forecasting evaluator, maybe overriding the parent class function?
There was a problem hiding this comment.
you can also do it as a separate PR
There was a problem hiding this comment.
data manager is required somewhere else by the time series evaluator because I defined time series dataset's getitem differently. Maybe in the future, we could fix that. But currently, I would prefer to keep self.datamanager in the evaluator
ravinkohli
left a comment
There was a problem hiding this comment.
Thanks for your changes. I think the tests are failing because we need to update the requirements. Particularly, gluonts version 0.11.4 does not have 'DayOfMonth' from 'gluonts.time_feature'. Could you take a look?
This is fixed. However, I am considering removing all these dependencies (gluonts, pytorch-forecasting) in the future (which might take some time, though). |
Types of changes
Note that a Pull Request should only contain one of refactoring, new features or documentation changes.
Please separate these changes and send us individual PRs for each.
For more information on how to create a good pull request, please refer to The anatomy of a perfect pull request.
Checklist:
Description
Fix #484 to allow the forecasting-related arguments to be passed to compute
task.scoreMotivation and Context
How has this been tested?